import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { environment } from '../../../environments/environment';
import { AuthModule } from './auth/auth.module';
import { AuthGuard } from './auth/auth.guard.service';
import { AuthService } from './auth/auth.service';
import { Logger } from './logger/logger.service';
import { InterceptorService } from './interceptor/interceptor.service';

@NgModule({
  imports: [
    CommonModule,
    AuthModule

  ],
  exports: [],
  providers: [
    AuthGuard,
    AuthService,
    {
      provide: Logger,
      useValue: Logger.forRoot(!environment.production)
    },
    InterceptorService
  ],
  declarations: []
})
export class ServiceModule { }
